import http from '@/axios/http.ts'

/**
 * 登录
 * @param {*} p 
 * @returns 
 */
export const Login = (params) => {
    return http.post('/sys_User/Login', params);
}

/**
 * 游客登录
 * @param {*} p 
 * @returns 
 */
export const touristLogin = () => {
    return http.post('/sys_User/TouristLogin');
}

/**
 * 获取验证码
 * @param {*} p 
 * @returns 
 */
export const createCode = (params) => {
    return http.get('/sys_User/CreateCode', params);
}

/**
 * 获取验证码
 * @param {*} p 
 * @returns 
 */
export const getUserMenuList = () => {
    return http.get('/Permissions/GetUserMenuList');
}
